// 用户管理要用的http请求
import axios from 'axios';
import { BASEURL } from '../constants';
const loginInstance = axios.create({
  baseURL: BASEURL,
});

export function login({ user_name, user_pwd }) {
  return loginInstance.post('/login', { user_name, user_pwd });
}
export function register({ user_name, user_pwd, user_type }) {
  return loginInstance.post('/login/register', {
    user_name,
    user_pwd,
    user_type,
  });
}
